import {ExtractPropTypes, type PropType} from 'vue'
import {buildProps} from "@/utils";

export const devCascaderMutexProps = buildProps({
    // 所有下拉选项
    options:{
        type:Array as PropType<any[]>,
        default:()=>[]
    },
    // 所有下拉选中值
    allSelectValue:{
        type:Array as PropType<any[]>,
        default:()=>[]
    },
    // 下拉选项根value对应的所有级value
    optionsPath:{
        type:Object as PropType<any>,
        default:()=>({})
    },
    // 子节点勾选后是否禁用父节点
    disableParentOnChild:{
        type:Boolean,
        default:false
    }
} as const)
export type DevCascaderMutexProps = ExtractPropTypes<typeof devCascaderMutexProps>
